//
//  TraineeCourseTable.h
//  TMS
//
//  Created by Dhanashree Bodas on 30/01/15.
//  Copyright (c) 2015 Dhanashree Bodas. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DBManager.h"
#import "Course.h"
#import "TraineeCourse.h"
@interface TraineeCourseTable : NSObject

-(int) allocateCourse:(int)tid courseName:(NSArray *)cname  andDate:(NSString *)date;

@property (strong) DBManager *db;

-(NSArray *) getAllocations:(int)tid;

-(NSArray *) listUnallocatedCourse:(int)tid;

-(NSArray*) getRejectedCourses:(int)tid;

-(NSArray *) LoadCoursesWithTraineeID:(int)tid andDate:(NSString *)date;

-(int) onRejectwithCourseId:(int)cid andTraineeID:(int)tid andStatus:(int)flag andReason:(NSString *)reason;

-(int) onAcceptwithCourseId:(int)cid andTraineeID:(int)tid andStatus:(int)flag andReason:(NSString *)reason;

-(NSArray *) onAcceptCheckExistingCourseWithTid:(int)tid andStatus:(int)flag andDate:(NSString *)date;

-(NSArray *) LoadCoursesWithTraineeIdAlreadyDone:(int)tid andDate:(NSString *)date andStatus:(int)flag;


@end
